package cn.ticket.service;

import java.text.ParseException;
import java.util.Date;
import java.util.List;
import java.util.Map;

import cn.ticket.model.Workbuses;

public interface WorkBusesService {
	int deleteByPrimaryKey(Integer id);

    int insert(Workbuses record);

    int insertSelective(Workbuses record);

    Workbuses selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Workbuses record);

    int updateByPrimaryKey(Workbuses record);
    
    List<Workbuses> getValidate0();
    
    List<Workbuses> getValidate1();
    
    List<Map<String, Object>> getInfoByDateAndOrientation(String orientation,Date startDate,Date endDate);
    
    List<Map<String, Object>> getInfoByDate(Date startDate,Date endDate);
    
    List<Workbuses> getByDepartureDate(Date departureDate);
    
    List<Workbuses> getValidate();
    
    List<Workbuses> getInValidate();
    
    List<Map<String, Object>> getByCount(Integer start,Integer count);
    
    boolean generateWorkBuses() throws ParseException;

	boolean generateWorkBuses(String today) throws ParseException;
	
	boolean generateWorkBusesNoAudit(String today) throws ParseException;
	
	boolean generateWorkBuses(Date date) throws ParseException;
	
	boolean generateWorkBusesNoAudit(Date date) throws ParseException;
	
    int seatOccupationAdd1(int id);
    
    int seatOccupationRemove1(int id);
    
    int seatOccupationAuditedAdd1(int id);
    
    int seatOccupationAuditedRemove1(int id);
}
